﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CourseArraging.UControl; 
using CourseArraging.Properties;

namespace CourseArraging.Frm.jygl
{
    /// <summary>
    /// 版权所有
    /// 石世特@温州医学院 sst330381@gmail.com
    /// </summary> 
    public class FrmTecCondi : Form
    {
        #region  Fields
        private CheckBox checkBox_1;
        private CheckBox checkBox_10;
        private CheckBox checkBox_11;
        private CheckBox checkBox_12;
        private CheckBox checkBox_13;
        private CheckBox checkBox_14;
        private CheckBox checkBox_2;
        private CheckBox checkBox_3;
        private CheckBox checkBox_4;
        private CheckBox checkBox_5;
        private CheckBox checkBox_6;
        private CheckBox checkBox_7;
        private CheckBox checkBox_8;
        private CheckBox checkBox_9;
        private CheckBox checkBox_Grad_1;
        private CheckBox checkBox_Grad_10;
        private CheckBox checkBox_Grad_11;
        private CheckBox checkBox_Grad_12;
        private CheckBox checkBox_Grad_13;
        private CheckBox checkBox_Grad_14;
        private CheckBox checkBox_Grad_2;
        private CheckBox checkBox_Grad_3;
        private CheckBox checkBox_Grad_4;
        private CheckBox checkBox_Grad_5;
        private CheckBox checkBox_Grad_6;
        private CheckBox checkBox_Grad_7;
        private CheckBox checkBox_Grad_8;
        private CheckBox checkBox_Grad_9;
        private CheckBox checkBox1;
        public ComboBox combo_sex;
        private IContainer components = null;
        public List<string> courselist = new List<string>();
        public List<string> gradelist = new List<string>();
        private GroupBox groupBox_course;
        private GroupBox groupBox_grade;
        private GroupBox groupBox1;
        private Label label1;
        private Label label10;
        private Label label11;
        private Label label3;
        private Label label4;
        private TabPage tab_basic;
        private TabPage tab_free;
        private TabControl tabControl1;
        private ToolStrip toolStrip1;
        private ToolStripSeparator toolStripSeparator1;
        private ToolStripSeparator toolStripSeparator2;
        private ToolStripSeparator toolStripSeparator3;
        private ToolStripButton tsb_copy;
        private ToolStripButton tsb_cut;
        private ToolStripButton tsb_exit;
        private ToolStripButton tsb_help;
        private ToolStripButton tsb_ok;
        private ToolStripButton tsb_paste;
        private ToolStripButton tsb_refresh;
        private TextBox txt_no;
        public TextBox txt_spell;
        public UCCombo_dep ucCombo_dep1;
        private UCCombo_dep ucCombo_dep2;
        private UCkcb uCkcb1;
        #endregion 

        #region 属性
        protected YhxxService.YhxxServiceClient yhxxdao = new YhxxService.YhxxServiceClient();
        string tec_time;

        #endregion

        // Events
        public event DelegateSearch SearchOK;


        // Methods
        public FrmTecCondi(string time)
        {
            this.InitializeComponent();
            this.tec_time = time;
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        public void GetConditions()
        {
            this.courselist.Clear();
            this.gradelist.Clear();
            foreach (CheckBox box in this.groupBox_course.Controls.OfType<CheckBox>())
            {
                if (box.Checked)
                {
                    this.courselist.Add(box.Text);
                }
            }
            foreach (CheckBox box2 in this.groupBox_grade.Controls.OfType<CheckBox>())
            {
                if (box2.Checked)
                {
                    this.gradelist.Add(box2.Text);
                }
            }
        }

        private void InitializeComponent()
        {
            this.label10 = new System.Windows.Forms.Label();
            this.toolStrip1 = new System.Windows.Forms.ToolStrip();
            this.tsb_ok = new System.Windows.Forms.ToolStripButton();
            this.tsb_refresh = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
            this.tsb_cut = new System.Windows.Forms.ToolStripButton();
            this.tsb_copy = new System.Windows.Forms.ToolStripButton();
            this.tsb_paste = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
            this.tsb_help = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
            this.tsb_exit = new System.Windows.Forms.ToolStripButton();
            this.tab_free = new System.Windows.Forms.TabPage();
            this.uCkcb1 = new CourseArraging.UControl.UCkcb();
            this.tab_basic = new System.Windows.Forms.TabPage();
            this.groupBox_grade = new System.Windows.Forms.GroupBox();
            this.checkBox_Grad_14 = new System.Windows.Forms.CheckBox();
            this.checkBox_Grad_9 = new System.Windows.Forms.CheckBox();
            this.checkBox_Grad_8 = new System.Windows.Forms.CheckBox();
            this.checkBox_Grad_13 = new System.Windows.Forms.CheckBox();
            this.checkBox_Grad_7 = new System.Windows.Forms.CheckBox();
            this.checkBox_Grad_10 = new System.Windows.Forms.CheckBox();
            this.checkBox_Grad_6 = new System.Windows.Forms.CheckBox();
            this.checkBox_Grad_12 = new System.Windows.Forms.CheckBox();
            this.checkBox_Grad_5 = new System.Windows.Forms.CheckBox();
            this.checkBox_Grad_11 = new System.Windows.Forms.CheckBox();
            this.checkBox_Grad_4 = new System.Windows.Forms.CheckBox();
            this.checkBox_Grad_3 = new System.Windows.Forms.CheckBox();
            this.checkBox_Grad_2 = new System.Windows.Forms.CheckBox();
            this.checkBox_Grad_1 = new System.Windows.Forms.CheckBox();
            this.groupBox_course = new System.Windows.Forms.GroupBox();
            this.checkBox1 = new System.Windows.Forms.CheckBox();
            this.checkBox_14 = new System.Windows.Forms.CheckBox();
            this.checkBox_13 = new System.Windows.Forms.CheckBox();
            this.checkBox_12 = new System.Windows.Forms.CheckBox();
            this.checkBox_11 = new System.Windows.Forms.CheckBox();
            this.checkBox_10 = new System.Windows.Forms.CheckBox();
            this.checkBox_9 = new System.Windows.Forms.CheckBox();
            this.checkBox_8 = new System.Windows.Forms.CheckBox();
            this.checkBox_7 = new System.Windows.Forms.CheckBox();
            this.checkBox_6 = new System.Windows.Forms.CheckBox();
            this.checkBox_5 = new System.Windows.Forms.CheckBox();
            this.checkBox_4 = new System.Windows.Forms.CheckBox();
            this.checkBox_3 = new System.Windows.Forms.CheckBox();
            this.checkBox_2 = new System.Windows.Forms.CheckBox();
            this.checkBox_1 = new System.Windows.Forms.CheckBox();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.ucCombo_dep2 = new CourseArraging.UControl.UCCombo_dep();
            this.txt_no = new System.Windows.Forms.TextBox();
            this.label11 = new System.Windows.Forms.Label();
            this.ucCombo_dep1 = new CourseArraging.UControl.UCCombo_dep();
            this.combo_sex = new System.Windows.Forms.ComboBox();
            this.label3 = new System.Windows.Forms.Label();
            this.label1 = new System.Windows.Forms.Label();
            this.txt_spell = new System.Windows.Forms.TextBox();
            this.label4 = new System.Windows.Forms.Label();
            this.tabControl1 = new System.Windows.Forms.TabControl();
            this.toolStrip1.SuspendLayout();
            this.tab_free.SuspendLayout();
            this.tab_basic.SuspendLayout();
            this.groupBox_grade.SuspendLayout();
            this.groupBox_course.SuspendLayout();
            this.groupBox1.SuspendLayout();
            this.tabControl1.SuspendLayout();
            this.SuspendLayout();
            // 
            // label10
            // 
            this.label10.Anchor = System.Windows.Forms.AnchorStyles.None;
            this.label10.AutoSize = true;
            this.label10.Font = new System.Drawing.Font("微软雅黑", 12.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.label10.Location = new System.Drawing.Point(519, 36);
            this.label10.Name = "label10";
            this.label10.Size = new System.Drawing.Size(112, 24);
            this.label10.TabIndex = 11;
            this.label10.Text = "教员信息查询";
            // 
            // toolStrip1
            // 
            this.toolStrip1.ImageScalingSize = new System.Drawing.Size(24, 24);
            this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.tsb_ok,
            this.tsb_refresh,
            this.toolStripSeparator1,
            this.tsb_cut,
            this.tsb_copy,
            this.tsb_paste,
            this.toolStripSeparator2,
            this.tsb_help,
            this.toolStripSeparator3,
            this.tsb_exit});
            this.toolStrip1.Location = new System.Drawing.Point(0, 0);
            this.toolStrip1.Name = "toolStrip1";
            this.toolStrip1.Size = new System.Drawing.Size(1176, 31);
            this.toolStrip1.TabIndex = 13;
            this.toolStrip1.Text = "toolStrip1";
            // 
            // tsb_ok
            // 
            this.tsb_ok.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.tsb_ok.Image = global::CourseArraging.Properties.Resources._1294462998_clean;
            this.tsb_ok.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.tsb_ok.Name = "tsb_ok";
            this.tsb_ok.Size = new System.Drawing.Size(28, 28);
            this.tsb_ok.Text = "保存";
            this.tsb_ok.Click += new System.EventHandler(this.tsb_ok_Click);
            // 
            // tsb_refresh
            // 
            this.tsb_refresh.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.tsb_refresh.Image = global::CourseArraging.Properties.Resources._1294490498_view_refresh;
            this.tsb_refresh.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.tsb_refresh.Name = "tsb_refresh";
            this.tsb_refresh.Size = new System.Drawing.Size(28, 28);
            this.tsb_refresh.Text = "刷新";
            this.tsb_refresh.Click += new System.EventHandler(this.tsb_refresh_Click);
            // 
            // toolStripSeparator1
            // 
            this.toolStripSeparator1.Name = "toolStripSeparator1";
            this.toolStripSeparator1.Size = new System.Drawing.Size(6, 31);
            // 
            // tsb_cut
            // 
            this.tsb_cut.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.tsb_cut.Image = global::CourseArraging.Properties.Resources._1297242097_Cut;
            this.tsb_cut.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.tsb_cut.Name = "tsb_cut";
            this.tsb_cut.Size = new System.Drawing.Size(28, 28);
            this.tsb_cut.Text = "剪切";
            // 
            // tsb_copy
            // 
            this.tsb_copy.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.tsb_copy.Image = global::CourseArraging.Properties.Resources._1297242169_edit_copy;
            this.tsb_copy.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.tsb_copy.Name = "tsb_copy";
            this.tsb_copy.Size = new System.Drawing.Size(28, 28);
            this.tsb_copy.Text = "复制";
            // 
            // tsb_paste
            // 
            this.tsb_paste.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.tsb_paste.Image = global::CourseArraging.Properties.Resources._1297242119_Paste;
            this.tsb_paste.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.tsb_paste.Name = "tsb_paste";
            this.tsb_paste.Size = new System.Drawing.Size(28, 28);
            this.tsb_paste.Text = "粘贴";
            // 
            // toolStripSeparator2
            // 
            this.toolStripSeparator2.Name = "toolStripSeparator2";
            this.toolStripSeparator2.Size = new System.Drawing.Size(6, 31);
            // 
            // tsb_help
            // 
            this.tsb_help.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.tsb_help.Image = global::CourseArraging.Properties.Resources._1297242316_stock_help_agent;
            this.tsb_help.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.tsb_help.Name = "tsb_help";
            this.tsb_help.Size = new System.Drawing.Size(28, 28);
            this.tsb_help.Text = "帮助";
            // 
            // toolStripSeparator3
            // 
            this.toolStripSeparator3.Name = "toolStripSeparator3";
            this.toolStripSeparator3.Size = new System.Drawing.Size(6, 31);
            // 
            // tsb_exit
            // 
            this.tsb_exit.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.tsb_exit.Image = global::CourseArraging.Properties.Resources._1297241912_application_exit;
            this.tsb_exit.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.tsb_exit.Name = "tsb_exit";
            this.tsb_exit.Size = new System.Drawing.Size(28, 28);
            this.tsb_exit.Text = "退出";
            this.tsb_exit.Click += new System.EventHandler(this.tsb_exit_Click);
            // 
            // tab_free
            // 
            this.tab_free.Controls.Add(this.uCkcb1);
            this.tab_free.Location = new System.Drawing.Point(4, 26);
            this.tab_free.Name = "tab_free";
            this.tab_free.Padding = new System.Windows.Forms.Padding(3);
            this.tab_free.Size = new System.Drawing.Size(1144, 276);
            this.tab_free.TabIndex = 1;
            this.tab_free.Text = "家教时间";
            this.tab_free.UseVisualStyleBackColor = true;
            // 
            // uCkcb1
            // 
            this.uCkcb1.Location = new System.Drawing.Point(6, 22);
            this.uCkcb1.Name = "uCkcb1";
            this.uCkcb1.Size = new System.Drawing.Size(1135, 222);
            this.uCkcb1.TabIndex = 0;
            // 
            // tab_basic
            // 
            this.tab_basic.BackColor = System.Drawing.Color.PowderBlue;
            this.tab_basic.Controls.Add(this.groupBox_grade);
            this.tab_basic.Controls.Add(this.groupBox_course);
            this.tab_basic.Controls.Add(this.groupBox1);
            this.tab_basic.Location = new System.Drawing.Point(4, 26);
            this.tab_basic.Name = "tab_basic";
            this.tab_basic.Padding = new System.Windows.Forms.Padding(3);
            this.tab_basic.Size = new System.Drawing.Size(1144, 276);
            this.tab_basic.TabIndex = 0;
            this.tab_basic.Text = "教员信息";
            // 
            // groupBox_grade
            // 
            this.groupBox_grade.Controls.Add(this.checkBox_Grad_14);
            this.groupBox_grade.Controls.Add(this.checkBox_Grad_9);
            this.groupBox_grade.Controls.Add(this.checkBox_Grad_8);
            this.groupBox_grade.Controls.Add(this.checkBox_Grad_13);
            this.groupBox_grade.Controls.Add(this.checkBox_Grad_7);
            this.groupBox_grade.Controls.Add(this.checkBox_Grad_10);
            this.groupBox_grade.Controls.Add(this.checkBox_Grad_6);
            this.groupBox_grade.Controls.Add(this.checkBox_Grad_12);
            this.groupBox_grade.Controls.Add(this.checkBox_Grad_5);
            this.groupBox_grade.Controls.Add(this.checkBox_Grad_11);
            this.groupBox_grade.Controls.Add(this.checkBox_Grad_4);
            this.groupBox_grade.Controls.Add(this.checkBox_Grad_3);
            this.groupBox_grade.Controls.Add(this.checkBox_Grad_2);
            this.groupBox_grade.Controls.Add(this.checkBox_Grad_1);
            this.groupBox_grade.Location = new System.Drawing.Point(129, 185);
            this.groupBox_grade.Name = "groupBox_grade";
            this.groupBox_grade.Size = new System.Drawing.Size(856, 84);
            this.groupBox_grade.TabIndex = 4;
            this.groupBox_grade.TabStop = false;
            this.groupBox_grade.Text = "可教年级";
            // 
            // checkBox_Grad_14
            // 
            this.checkBox_Grad_14.AutoSize = true;
            this.checkBox_Grad_14.Location = new System.Drawing.Point(549, 27);
            this.checkBox_Grad_14.Name = "checkBox_Grad_14";
            this.checkBox_Grad_14.Size = new System.Drawing.Size(48, 16);
            this.checkBox_Grad_14.TabIndex = 22;
            this.checkBox_Grad_14.Tag = "14";
            this.checkBox_Grad_14.Text = "成人";
            this.checkBox_Grad_14.UseVisualStyleBackColor = true;
            // 
            // checkBox_Grad_9
            // 
            this.checkBox_Grad_9.AutoSize = true;
            this.checkBox_Grad_9.Location = new System.Drawing.Point(169, 27);
            this.checkBox_Grad_9.Name = "checkBox_Grad_9";
            this.checkBox_Grad_9.Size = new System.Drawing.Size(48, 16);
            this.checkBox_Grad_9.TabIndex = 17;
            this.checkBox_Grad_9.Tag = "9";
            this.checkBox_Grad_9.Text = "初三";
            this.checkBox_Grad_9.UseVisualStyleBackColor = true;
            // 
            // checkBox_Grad_8
            // 
            this.checkBox_Grad_8.AutoSize = true;
            this.checkBox_Grad_8.Location = new System.Drawing.Point(93, 27);
            this.checkBox_Grad_8.Name = "checkBox_Grad_8";
            this.checkBox_Grad_8.Size = new System.Drawing.Size(48, 16);
            this.checkBox_Grad_8.TabIndex = 16;
            this.checkBox_Grad_8.Tag = "8";
            this.checkBox_Grad_8.Text = "初二";
            this.checkBox_Grad_8.UseVisualStyleBackColor = true;
            // 
            // checkBox_Grad_13
            // 
            this.checkBox_Grad_13.AutoSize = true;
            this.checkBox_Grad_13.Location = new System.Drawing.Point(473, 27);
            this.checkBox_Grad_13.Name = "checkBox_Grad_13";
            this.checkBox_Grad_13.Size = new System.Drawing.Size(60, 16);
            this.checkBox_Grad_13.TabIndex = 21;
            this.checkBox_Grad_13.Tag = "13";
            this.checkBox_Grad_13.Text = "大学生";
            this.checkBox_Grad_13.UseVisualStyleBackColor = true;
            // 
            // checkBox_Grad_7
            // 
            this.checkBox_Grad_7.AutoSize = true;
            this.checkBox_Grad_7.Location = new System.Drawing.Point(17, 27);
            this.checkBox_Grad_7.Name = "checkBox_Grad_7";
            this.checkBox_Grad_7.Size = new System.Drawing.Size(48, 16);
            this.checkBox_Grad_7.TabIndex = 15;
            this.checkBox_Grad_7.Tag = "7";
            this.checkBox_Grad_7.Text = "初一";
            this.checkBox_Grad_7.UseVisualStyleBackColor = true;
            // 
            // checkBox_Grad_10
            // 
            this.checkBox_Grad_10.AutoSize = true;
            this.checkBox_Grad_10.Location = new System.Drawing.Point(245, 27);
            this.checkBox_Grad_10.Name = "checkBox_Grad_10";
            this.checkBox_Grad_10.Size = new System.Drawing.Size(48, 16);
            this.checkBox_Grad_10.TabIndex = 18;
            this.checkBox_Grad_10.Tag = "10";
            this.checkBox_Grad_10.Text = "高一";
            this.checkBox_Grad_10.UseVisualStyleBackColor = true;
            // 
            // checkBox_Grad_6
            // 
            this.checkBox_Grad_6.AutoSize = true;
            this.checkBox_Grad_6.Location = new System.Drawing.Point(168, 54);
            this.checkBox_Grad_6.Name = "checkBox_Grad_6";
            this.checkBox_Grad_6.Size = new System.Drawing.Size(48, 16);
            this.checkBox_Grad_6.TabIndex = 14;
            this.checkBox_Grad_6.Tag = "6";
            this.checkBox_Grad_6.Text = "小六";
            this.checkBox_Grad_6.UseVisualStyleBackColor = true;
            // 
            // checkBox_Grad_12
            // 
            this.checkBox_Grad_12.AutoSize = true;
            this.checkBox_Grad_12.Location = new System.Drawing.Point(397, 27);
            this.checkBox_Grad_12.Name = "checkBox_Grad_12";
            this.checkBox_Grad_12.Size = new System.Drawing.Size(48, 16);
            this.checkBox_Grad_12.TabIndex = 20;
            this.checkBox_Grad_12.Tag = "12";
            this.checkBox_Grad_12.Text = "高三";
            this.checkBox_Grad_12.UseVisualStyleBackColor = true;
            // 
            // checkBox_Grad_5
            // 
            this.checkBox_Grad_5.AutoSize = true;
            this.checkBox_Grad_5.Location = new System.Drawing.Point(92, 54);
            this.checkBox_Grad_5.Name = "checkBox_Grad_5";
            this.checkBox_Grad_5.Size = new System.Drawing.Size(48, 16);
            this.checkBox_Grad_5.TabIndex = 13;
            this.checkBox_Grad_5.Tag = "5";
            this.checkBox_Grad_5.Text = "小五";
            this.checkBox_Grad_5.UseVisualStyleBackColor = true;
            // 
            // checkBox_Grad_11
            // 
            this.checkBox_Grad_11.AutoSize = true;
            this.checkBox_Grad_11.Location = new System.Drawing.Point(321, 27);
            this.checkBox_Grad_11.Name = "checkBox_Grad_11";
            this.checkBox_Grad_11.Size = new System.Drawing.Size(48, 16);
            this.checkBox_Grad_11.TabIndex = 19;
            this.checkBox_Grad_11.Tag = "11";
            this.checkBox_Grad_11.Text = "高二";
            this.checkBox_Grad_11.UseVisualStyleBackColor = true;
            // 
            // checkBox_Grad_4
            // 
            this.checkBox_Grad_4.AutoSize = true;
            this.checkBox_Grad_4.Location = new System.Drawing.Point(16, 54);
            this.checkBox_Grad_4.Name = "checkBox_Grad_4";
            this.checkBox_Grad_4.Size = new System.Drawing.Size(48, 16);
            this.checkBox_Grad_4.TabIndex = 12;
            this.checkBox_Grad_4.Tag = "4";
            this.checkBox_Grad_4.Text = "小四";
            this.checkBox_Grad_4.UseVisualStyleBackColor = true;
            // 
            // checkBox_Grad_3
            // 
            this.checkBox_Grad_3.AutoSize = true;
            this.checkBox_Grad_3.Location = new System.Drawing.Point(771, 27);
            this.checkBox_Grad_3.Name = "checkBox_Grad_3";
            this.checkBox_Grad_3.Size = new System.Drawing.Size(48, 16);
            this.checkBox_Grad_3.TabIndex = 11;
            this.checkBox_Grad_3.Tag = "3";
            this.checkBox_Grad_3.Text = "小三";
            this.checkBox_Grad_3.UseVisualStyleBackColor = true;
            // 
            // checkBox_Grad_2
            // 
            this.checkBox_Grad_2.AutoSize = true;
            this.checkBox_Grad_2.Location = new System.Drawing.Point(695, 27);
            this.checkBox_Grad_2.Name = "checkBox_Grad_2";
            this.checkBox_Grad_2.Size = new System.Drawing.Size(48, 16);
            this.checkBox_Grad_2.TabIndex = 10;
            this.checkBox_Grad_2.Tag = "2";
            this.checkBox_Grad_2.Text = "小二";
            this.checkBox_Grad_2.UseVisualStyleBackColor = true;
            // 
            // checkBox_Grad_1
            // 
            this.checkBox_Grad_1.AutoSize = true;
            this.checkBox_Grad_1.Location = new System.Drawing.Point(619, 27);
            this.checkBox_Grad_1.Name = "checkBox_Grad_1";
            this.checkBox_Grad_1.Size = new System.Drawing.Size(48, 16);
            this.checkBox_Grad_1.TabIndex = 9;
            this.checkBox_Grad_1.Tag = "1";
            this.checkBox_Grad_1.Text = "小一";
            this.checkBox_Grad_1.UseVisualStyleBackColor = true;
            // 
            // groupBox_course
            // 
            this.groupBox_course.Controls.Add(this.checkBox1);
            this.groupBox_course.Controls.Add(this.checkBox_14);
            this.groupBox_course.Controls.Add(this.checkBox_13);
            this.groupBox_course.Controls.Add(this.checkBox_12);
            this.groupBox_course.Controls.Add(this.checkBox_11);
            this.groupBox_course.Controls.Add(this.checkBox_10);
            this.groupBox_course.Controls.Add(this.checkBox_9);
            this.groupBox_course.Controls.Add(this.checkBox_8);
            this.groupBox_course.Controls.Add(this.checkBox_7);
            this.groupBox_course.Controls.Add(this.checkBox_6);
            this.groupBox_course.Controls.Add(this.checkBox_5);
            this.groupBox_course.Controls.Add(this.checkBox_4);
            this.groupBox_course.Controls.Add(this.checkBox_3);
            this.groupBox_course.Controls.Add(this.checkBox_2);
            this.groupBox_course.Controls.Add(this.checkBox_1);
            this.groupBox_course.Location = new System.Drawing.Point(129, 84);
            this.groupBox_course.Name = "groupBox_course";
            this.groupBox_course.Size = new System.Drawing.Size(856, 88);
            this.groupBox_course.TabIndex = 3;
            this.groupBox_course.TabStop = false;
            this.groupBox_course.Text = "主要辅导科目";
            // 
            // checkBox1
            // 
            this.checkBox1.AutoSize = true;
            this.checkBox1.Location = new System.Drawing.Point(245, 27);
            this.checkBox1.Name = "checkBox1";
            this.checkBox1.Size = new System.Drawing.Size(48, 16);
            this.checkBox1.TabIndex = 15;
            this.checkBox1.Tag = "4";
            this.checkBox1.Text = "科学";
            this.checkBox1.UseVisualStyleBackColor = true;
            // 
            // checkBox_14
            // 
            this.checkBox_14.AutoSize = true;
            this.checkBox_14.Location = new System.Drawing.Point(771, 27);
            this.checkBox_14.Name = "checkBox_14";
            this.checkBox_14.Size = new System.Drawing.Size(60, 16);
            this.checkBox_14.TabIndex = 14;
            this.checkBox_14.Tag = "15";
            this.checkBox_14.Text = "计算机";
            this.checkBox_14.UseVisualStyleBackColor = true;
            // 
            // checkBox_13
            // 
            this.checkBox_13.AutoSize = true;
            this.checkBox_13.Location = new System.Drawing.Point(695, 27);
            this.checkBox_13.Name = "checkBox_13";
            this.checkBox_13.Size = new System.Drawing.Size(48, 16);
            this.checkBox_13.TabIndex = 13;
            this.checkBox_13.Tag = "14";
            this.checkBox_13.Text = "音乐";
            this.checkBox_13.UseVisualStyleBackColor = true;
            // 
            // checkBox_12
            // 
            this.checkBox_12.AutoSize = true;
            this.checkBox_12.Location = new System.Drawing.Point(619, 27);
            this.checkBox_12.Name = "checkBox_12";
            this.checkBox_12.Size = new System.Drawing.Size(48, 16);
            this.checkBox_12.TabIndex = 12;
            this.checkBox_12.Tag = "13";
            this.checkBox_12.Text = "美术";
            this.checkBox_12.UseVisualStyleBackColor = true;
            // 
            // checkBox_11
            // 
            this.checkBox_11.AutoSize = true;
            this.checkBox_11.Location = new System.Drawing.Point(245, 54);
            this.checkBox_11.Name = "checkBox_11";
            this.checkBox_11.Size = new System.Drawing.Size(48, 16);
            this.checkBox_11.TabIndex = 11;
            this.checkBox_11.Tag = "12";
            this.checkBox_11.Text = "钢琴";
            this.checkBox_11.UseVisualStyleBackColor = true;
            // 
            // checkBox_10
            // 
            this.checkBox_10.AutoSize = true;
            this.checkBox_10.Location = new System.Drawing.Point(169, 54);
            this.checkBox_10.Name = "checkBox_10";
            this.checkBox_10.Size = new System.Drawing.Size(48, 16);
            this.checkBox_10.TabIndex = 10;
            this.checkBox_10.Tag = "11";
            this.checkBox_10.Text = "奥数";
            this.checkBox_10.UseVisualStyleBackColor = true;
            // 
            // checkBox_9
            // 
            this.checkBox_9.AutoSize = true;
            this.checkBox_9.Location = new System.Drawing.Point(93, 54);
            this.checkBox_9.Name = "checkBox_9";
            this.checkBox_9.Size = new System.Drawing.Size(48, 16);
            this.checkBox_9.TabIndex = 9;
            this.checkBox_9.Tag = "10";
            this.checkBox_9.Text = "地理";
            this.checkBox_9.UseVisualStyleBackColor = true;
            // 
            // checkBox_8
            // 
            this.checkBox_8.AutoSize = true;
            this.checkBox_8.Location = new System.Drawing.Point(17, 54);
            this.checkBox_8.Name = "checkBox_8";
            this.checkBox_8.Size = new System.Drawing.Size(48, 16);
            this.checkBox_8.TabIndex = 8;
            this.checkBox_8.Tag = "9";
            this.checkBox_8.Text = "历史";
            this.checkBox_8.UseVisualStyleBackColor = true;
            // 
            // checkBox_7
            // 
            this.checkBox_7.AutoSize = true;
            this.checkBox_7.Location = new System.Drawing.Point(549, 27);
            this.checkBox_7.Name = "checkBox_7";
            this.checkBox_7.Size = new System.Drawing.Size(48, 16);
            this.checkBox_7.TabIndex = 7;
            this.checkBox_7.Tag = "8";
            this.checkBox_7.Text = "政治";
            this.checkBox_7.UseVisualStyleBackColor = true;
            // 
            // checkBox_6
            // 
            this.checkBox_6.AutoSize = true;
            this.checkBox_6.Location = new System.Drawing.Point(473, 27);
            this.checkBox_6.Name = "checkBox_6";
            this.checkBox_6.Size = new System.Drawing.Size(48, 16);
            this.checkBox_6.TabIndex = 6;
            this.checkBox_6.Tag = "7";
            this.checkBox_6.Text = "生物";
            this.checkBox_6.UseVisualStyleBackColor = true;
            // 
            // checkBox_5
            // 
            this.checkBox_5.AutoSize = true;
            this.checkBox_5.Location = new System.Drawing.Point(397, 27);
            this.checkBox_5.Name = "checkBox_5";
            this.checkBox_5.Size = new System.Drawing.Size(48, 16);
            this.checkBox_5.TabIndex = 5;
            this.checkBox_5.Tag = "6";
            this.checkBox_5.Text = "化学";
            this.checkBox_5.UseVisualStyleBackColor = true;
            // 
            // checkBox_4
            // 
            this.checkBox_4.AutoSize = true;
            this.checkBox_4.Location = new System.Drawing.Point(321, 27);
            this.checkBox_4.Name = "checkBox_4";
            this.checkBox_4.Size = new System.Drawing.Size(48, 16);
            this.checkBox_4.TabIndex = 4;
            this.checkBox_4.Tag = "5";
            this.checkBox_4.Text = "物理";
            this.checkBox_4.UseVisualStyleBackColor = true;
            // 
            // checkBox_3
            // 
            this.checkBox_3.AutoSize = true;
            this.checkBox_3.Location = new System.Drawing.Point(169, 27);
            this.checkBox_3.Name = "checkBox_3";
            this.checkBox_3.Size = new System.Drawing.Size(48, 16);
            this.checkBox_3.TabIndex = 3;
            this.checkBox_3.Tag = "3";
            this.checkBox_3.Text = "英语";
            this.checkBox_3.UseVisualStyleBackColor = true;
            // 
            // checkBox_2
            // 
            this.checkBox_2.AutoSize = true;
            this.checkBox_2.Location = new System.Drawing.Point(93, 27);
            this.checkBox_2.Name = "checkBox_2";
            this.checkBox_2.Size = new System.Drawing.Size(48, 16);
            this.checkBox_2.TabIndex = 2;
            this.checkBox_2.Tag = "2";
            this.checkBox_2.Text = "数学";
            this.checkBox_2.UseVisualStyleBackColor = true;
            // 
            // checkBox_1
            // 
            this.checkBox_1.AutoSize = true;
            this.checkBox_1.Location = new System.Drawing.Point(17, 27);
            this.checkBox_1.Name = "checkBox_1";
            this.checkBox_1.Size = new System.Drawing.Size(48, 16);
            this.checkBox_1.TabIndex = 1;
            this.checkBox_1.Tag = "1";
            this.checkBox_1.Text = "语文";
            this.checkBox_1.UseVisualStyleBackColor = true;
            // 
            // groupBox1
            // 
            this.groupBox1.Controls.Add(this.ucCombo_dep2);
            this.groupBox1.Controls.Add(this.txt_no);
            this.groupBox1.Controls.Add(this.label11);
            this.groupBox1.Controls.Add(this.ucCombo_dep1);
            this.groupBox1.Controls.Add(this.combo_sex);
            this.groupBox1.Controls.Add(this.label3);
            this.groupBox1.Controls.Add(this.label1);
            this.groupBox1.Controls.Add(this.txt_spell);
            this.groupBox1.Controls.Add(this.label4);
            this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.groupBox1.Location = new System.Drawing.Point(128, 15);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(857, 59);
            this.groupBox1.TabIndex = 1;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "个人信息";
            // 
            // ucCombo_dep2
            // 
            this.ucCombo_dep2.Location = new System.Drawing.Point(519, 22);
            this.ucCombo_dep2.Name = "ucCombo_dep2";
            this.ucCombo_dep2.Size = new System.Drawing.Size(86, 26);
            this.ucCombo_dep2.TabIndex = 30;
            // 
            // txt_no
            // 
            this.txt_no.Location = new System.Drawing.Point(79, 22);
            this.txt_no.Name = "txt_no";
            this.txt_no.Size = new System.Drawing.Size(82, 23);
            this.txt_no.TabIndex = 9;
            // 
            // label11
            // 
            this.label11.AutoSize = true;
            this.label11.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.label11.Location = new System.Drawing.Point(14, 25);
            this.label11.Name = "label11";
            this.label11.Size = new System.Drawing.Size(59, 17);
            this.label11.TabIndex = 7;
            this.label11.Text = "教员编号:";
            // 
            // ucCombo_dep1
            // 
            this.ucCombo_dep1.Location = new System.Drawing.Point(1776, 356);
            this.ucCombo_dep1.Margin = new System.Windows.Forms.Padding(3, 67, 3, 67);
            this.ucCombo_dep1.Name = "ucCombo_dep1";
            this.ucCombo_dep1.Size = new System.Drawing.Size(283, 435);
            this.ucCombo_dep1.TabIndex = 29;
            // 
            // combo_sex
            // 
            this.combo_sex.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.combo_sex.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.combo_sex.FormattingEnabled = true;
            this.combo_sex.Items.AddRange(new object[] {
            "男",
            "女"});
            this.combo_sex.Location = new System.Drawing.Point(368, 22);
            this.combo_sex.Name = "combo_sex";
            this.combo_sex.Size = new System.Drawing.Size(80, 25);
            this.combo_sex.TabIndex = 23;
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label3.Location = new System.Drawing.Point(173, 25);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(43, 17);
            this.label3.TabIndex = 4;
            this.label3.Text = "简  拼:";
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label1.Location = new System.Drawing.Point(470, 26);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(43, 17);
            this.label1.TabIndex = 25;
            this.label1.Text = "分  校:";
            // 
            // txt_spell
            // 
            this.txt_spell.Location = new System.Drawing.Point(222, 22);
            this.txt_spell.Name = "txt_spell";
            this.txt_spell.Size = new System.Drawing.Size(80, 23);
            this.txt_spell.TabIndex = 16;
            // 
            // label4
            // 
            this.label4.AutoSize = true;
            this.label4.Font = new System.Drawing.Font("微软雅黑", 9F);
            this.label4.Location = new System.Drawing.Point(319, 26);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(43, 17);
            this.label4.TabIndex = 6;
            this.label4.Text = "性  别:";
            // 
            // tabControl1
            // 
            this.tabControl1.Controls.Add(this.tab_basic);
            this.tabControl1.Controls.Add(this.tab_free);
            this.tabControl1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.tabControl1.Location = new System.Drawing.Point(12, 61);
            this.tabControl1.Name = "tabControl1";
            this.tabControl1.SelectedIndex = 0;
            this.tabControl1.Size = new System.Drawing.Size(1152, 306);
            this.tabControl1.TabIndex = 12;
            // 
            // FrmTecCondi
            // 
            this.ClientSize = new System.Drawing.Size(1176, 395);
            this.Controls.Add(this.toolStrip1);
            this.Controls.Add(this.tabControl1);
            this.Controls.Add(this.label10);
            this.Name = "FrmTecCondi";
            this.Text = "教员档案查看";
            this.toolStrip1.ResumeLayout(false);
            this.toolStrip1.PerformLayout();
            this.tab_free.ResumeLayout(false);
            this.tab_basic.ResumeLayout(false);
            this.groupBox_grade.ResumeLayout(false);
            this.groupBox_grade.PerformLayout();
            this.groupBox_course.ResumeLayout(false);
            this.groupBox_course.PerformLayout();
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.tabControl1.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        private void tsb_exit_Click(object sender, EventArgs e)
        {
            base.Close();
        }

        private void tsb_ok_Click(object sender, EventArgs e)
        {
            this.GetConditions();
            DataTable dt = this.yhxxdao.GetTecinfo4Contact(
                this.txt_no.Text.Trim(), this.txt_spell.Text.Trim(), this.combo_sex.Text,
                this.ucCombo_dep1.comboBox1.Text, this.courselist.ToArray(), this.gradelist.ToArray());
            this.SearchOK(dt);
        }

        private void tsb_refresh_Click(object sender, EventArgs e)
        {
        }

        // Nested Types
        public delegate void DelegateSearch(DataTable dt);
    }

}
